MSVI

The goal of the MSVI package is to provide researchers and analysts with health and socioeconomic data at the metropolitan or county-level.

The MSVI package contains:

Installation

You can install the development version from GitHub with:

# install.packages("devtools")
devtools::install_github("asmae-toumi/MSVI")

Social Vulnerability Index

CDC developed the SVI to “help public health officials and emergency response planners identify and map the communities that will most likely need support before, during, and after a hazardous event.”. It ranks counties vulnerability by the following themes: socioeconomic status, household Composition & disability, minority status & language, housing type & transportation, and an overall ranking.

library(tidyverse)
library(janitor)
library(r2d3maps)
library(albersusa)
library(sf)
library(tigris)

svi_ranking <- 
  readRDS("data/svi_ranking.rds") %>% 
  clean_names() %>% 
  filter(across(where(is.numeric), ~. >= 0)) 

cty_sf <- counties_sf("longlat")

cty_sf <- cty_sf %>% 
  geo_join(svi_ranking, by_sp = "fips", by_df = "fips")

d3_map(shape = cty_sf, projection = "Albers") %>%
  add_continuous_breaks(var = "overall_ranking", palette = "Reds", direction = -1) %>%
  add_legend(title = "Overall Vulnerability (percentile)") %>%
  add_tooltip("<b>{name.y}</b>:</br>
              Overall vulnerability: {overall_ranking}")